/* 练习系统样式 */
:root {
    --primary: #3f51b5;
    --secondary: #ff4081;
    --text: #333;
    --light-bg: #f5f7fa;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body {
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background-color: #f9fafc;
}

body.mobile-view {
    font-size: 14px;
}

body.small-mobile-view {
    font-size: 13px;
}

body.touch-device .cxd-Button {
    padding: 7px 12px;
}

.touch-active {
    background-color: rgba(63, 81, 181, 0.15) !important;
    transform: scale(0.98) !important;
}

/* 区域样式 */
.client-welcome-section {
    padding: 20px;
    background: linear-gradient(135deg, #fff, var(--light-bg));
    border-radius: var(--radius);
    margin: 20px 25px 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.welcome-message h2 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 24px;
}

.welcome-message p {
    color: #666;
    font-size: 16px;
}

.welcome-icon {
    color: var(--primary);
    margin-right: 8px;
    width: 22px;
    text-align: center;
}

.section-title {
    padding-left: 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.section-title:before {
    content: "";
    position: absolute;
    left: 0;
    height: 16px;
    width: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-icon {
    color: var(--primary);
    margin-right: 8px;
    width: 24px;
    text-align: center;
}

.cxd-Divider {
    margin: 10px 0;
}

.practice-list-section, .practice-history-section, .student-profile-section, .practice-stats-section {
    padding: 12px;
    margin: 0 25px 15px;
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* 统计卡片样式 */
.stat-card {
    height: 100%;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    border: 1px solid #eaeaea;
    border-radius: var(--radius);
    overflow: hidden;
    padding: 15px;
    text-align: center;
    background: linear-gradient(135deg, #fff, #f5f7fa);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    margin: 10px 0;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.stat-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

/* 练习卡片样式 */
.practice-card {
    height: 100%;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
    border-radius: var(--radius);
    overflow: hidden;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.practice-card .cxd-Card-header {
    background-color: var(--light-bg);
    border-bottom: 1px solid #eaeaea;
}

.practice-card .cxd-Card-title {
    font-weight: 600;
    color: var(--primary);
}

/* 按钮样式 */
.cxd-Button--primary {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(63, 81, 181, 0.25);
    transition: all 0.3s ease;
}

.cxd-Button--primary:hover {
    background-color: #303f9f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.4);
}

.cxd-Button--info {
    background-color: #03a9f4;
    border-color: #03a9f4;
}

/* 练习信息项 */
.practice-info-item {
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: var(--radius);
    background-color: rgba(63, 81, 181, 0.03);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.practice-info-item:hover {
    background-color: rgba(63, 81, 181, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.practice-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.practice-info-label {
    color: #666;
    font-weight: 500;
    margin-right: 8px;
    min-width: 60px;
    display: inline-block;
}

.practice-info-value {
    font-weight: 600;
    color: #333;
}

.flex-info-item {
    padding: 0 5px;
    margin-bottom: 10px;
    flex: 1;
    min-width: 0;
}

/* 标签样式 */
.label {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
}

.label-success { background-color: #e8f5e9; color: #2e7d32; }
.label-info { background-color: #e3f2fd; color: #1565c0; }
.label-danger { background-color: #ffebee; color: #c62828; }

/* 响应式样式 */
@media (max-width: 768px) {
    .practice-list-section, .practice-history-section, .client-welcome-section, .student-profile-section, .practice-stats-section {
        margin: 15px;
        padding: 12px;
    }
    .welcome-message h2 { font-size: 20px; }
    .welcome-message p { font-size: 14px; }
    .section-title {
        font-size: 16px;
        padding-left: 20px;
        margin-bottom: 10px;
    }
    .practice-info-label { min-width: 55px; }
    .w-sm-12 { width: 100% !important; }
    .flex-info-item { padding: 0 0 8px 0; }
    .practice-info-item { padding: 8px 10px; }
    .cxd-Divider { margin: 8px 0; }
    .stat-value { font-size: 24px; }
} 